import request from '@/utils/request'

// 设备管理和运维人员信息 excel文件
const infoExcelFile = function (params = {}) {
  return request({
    url: `/zy-api/api/equipmentAndOpera/dowEquipmentAndOperation`,
    method: 'post',
    data: params,
    // url: `/zy-api/fileCommon/create`,
    // method: 'get',
    // params,
    responseType: 'arraybuffer'
  })
}

// 运维单位详细信息
const operationCompanyInfo = function (dwCd) {
  return request({
    url: `/zy-api/api/operationMainUnit/getOperationMainUnitId`,
    method: 'post',
    data: { dwCd },
  })
}

export {
  infoExcelFile,
  operationCompanyInfo
}